#include "glosa.h"


glosa::glosa()
{
	word = "";
	translation = "";
}

glosa::glosa(string word, string trans)
{
	this->word = word;
	this->translation = trans;
}

glosa::glosa(const glosa& g)
{
	word = g.getWord();
	translation = g.getTranslation();
}

glosa::~glosa()
{
}

bool glosa::operator== (const string &s)
{
	if (word == s || translation == s)
	{
		return true;
	}
	else
	{
		return false;
	}
}

ostream & operator << (ostream &o, glosa &g)
{
	o << g.word << " - " << g.translation;
	return o;
}